<?php
include_once ('../../global.php');

class CApp extends App_Ajax_Admin
{
	private $cid;
	
	protected function getPara()
    {
		$this->cid = Tool_Input::clean('r', 'cid', 'int');
    }

	protected function checkPara()
    {
    	if (empty($this->cid))
    	{
    		throw new Exception('common:invalid params');
    	}
    }

    protected function main()
    {
   		$this->ret = $this->goods_category->delete($this->cid);
    }

    protected function outputBody()
    {
    	$response = new Response_Ajax();
        $response->setContent(array('ret' => $this->ret));
        $response->send();
        exit;
    }
}

$app = new CApp("");
$app->run();
?>